#ifndef _SPHERE
#define _SPHERE

#include "Base.h"
#include "Vector.h"
#include "Ray.h"

class Sphere
{
public:

  Vector c;
  fp R;
  
  fp zNear, zFar;

  Sphere(
    const Vector& _c=Vector(0,0,0),
    const fp _R=1.0f
  );
  Sphere(const Sphere& s);
  
  bool Intersect(const Ray& r);
};

#endif // _SPHERE
